<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02_namespace模式</title>
</head>
<body>
<script type='text/javascript' src='module1.js'></script>
<script type='text/javascript'>
    myModule.foo();
    myModule.msg = "N B A";
    myModule.foo();
</script>
</body>
</html>